package org.tnc.hr.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "budget_center_all_view", catalog = "tnc")
public class BudgetCenterAllView implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1933527475918851688L;
    private Integer eventId;
    private String loginName;
    private String userName;
    private String bcId;
    private String bcName;
    private Double workHour;
    private String bcDuty;
    private String startDate;
    private String endDate;

    // Constructors

    /** default constructor */
    public BudgetCenterAllView() {
    }

    /** minimal constructor */
    public BudgetCenterAllView(Integer eventId, String loginName, String bcId, String bcName) {
        this.eventId = eventId;
        this.loginName = loginName;
        this.bcId = bcId;
        this.bcName = bcName;
    }

    /** full constructor */
    public BudgetCenterAllView(Integer eventId, String loginName, String userName, String bcId, String bcName,
            Double workHour, String bcDuty, String startDate, String endDate) {
        this.eventId = eventId;
        this.loginName = loginName;
        this.userName = userName;
        this.bcId = bcId;
        this.bcName = bcName;
        this.workHour = workHour;
        this.bcDuty = bcDuty;
        this.startDate = startDate;
        this.endDate = endDate;
    }

    // Property accessors
    @Id
    @Column(name = "event_id", nullable = false)
    public Integer getEventId() {
        return this.eventId;
    }

    public void setEventId(Integer eventId) {
        this.eventId = eventId;
    }

    @Column(name = "login_name", nullable = false, length = 50)
    public String getLoginName() {
        return this.loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    @Column(name = "user_name", length = 100)
    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Column(name = "bc_id", nullable = false, length = 100)
    public String getBcId() {
        return this.bcId;
    }

    public void setBcId(String bcId) {
        this.bcId = bcId;
    }

    @Column(name = "bc_name", nullable = false)
    public String getBcName() {
        return this.bcName;
    }

    public void setBcName(String bcName) {
        this.bcName = bcName;
    }

    @Column(name = "work_hour", precision = 12, scale = 1)
    public Double getWorkHour() {
        return this.workHour;
    }

    public void setWorkHour(Double workHour) {
        this.workHour = workHour;
    }

    @Column(name = "bc_duty", length = 100)
    public String getBcDuty() {
        return this.bcDuty;
    }

    public void setBcDuty(String bcDuty) {
        this.bcDuty = bcDuty;
    }

    @Column(name = "start_date", length = 19)
    public String getStartDate() {
        return this.startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    @Column(name = "end_date", length = 19)
    public String getEndDate() {
        return this.endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

}